<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- http://hge.relishgames.com -->

<html>

<head>
<meta name="Keywords" content="game engine, 2d, hardware accelerated, hge, engine, relish games, game development">
<meta name="Description" content="Haaf's Game Engine - Hardware accelerated 2D games engine">
<title>Haaf's Game Engine - Hardware accelerated 2D games engine</title>
<link rel=stylesheet type=text/css href=hge.css>
<script language="JavaScript" src="hge.js"></script>
</head>

<body onload="setContents('cnt_hgeguio.html');" bgcolor=#ffffff text=#000000 link=#7F0000 vlink=#7F0000 alink=#7F0000 marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table height=100% cellspacing=0 cellpadding=0 border=0><tr>

<td valign=top>
<table width=566 cellspacing=0 cellpadding=20 border=0><tr><td>
<h1 style="margin-top:0px">hgeGUIObject::Leave</h1>
<p>
Is called when the GUI is about to disappear from the screen.
So, if the control has a leave animation, it should be started.
</p>
<pre>
virtual void Leave();
</pre>
<h2>Remarks</h2>
<p>
The actual animation should happen in the <a href="hgeguio_update.html">Update</a> method.
When the animation is finished, <a href="hgeguio_isdone.html">IsDone</a> shoud return <b>true</b>.
<br><br>
<a href="hgeguio__main.html">hgeGUIObject</a> has default implementation,
so you could not redefine this method if you don't need it.
</p>
<h2>Requirements</h2>
<p>
<b>Header:</b> hgegui.h<br>
</p>
<h2>See also</h2>
<p>
<a href="hgeguio_enter.html">Enter</a>
</p>
<br>
</td></tr></table>
</td>

</tr></table>
</body>

</html>